//
//  UIView+FormScroll.m
//  HairCutSalon
//
//  Created by Familly on 5/27/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "UIView+FormScroll.h"

@implementation UIView (FormScroll)
-(void)beginKeyBoardAvoidWith:(CGRect)mainFrame
{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.25f];
    CGRect frame = mainFrame;
    frame.origin.y =frame.origin.y -204;
    [self setFrame:frame];
    [UIView commitAnimations];
}
-(void)endKeyBoardAvoid:(CGRect)mainFrame
{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.25f];
    CGRect frame = mainFrame;
    frame.origin.y =0;
    [self setFrame:frame];
    [UIView commitAnimations];
}



@end
